<?php
use yii\helpers\Html;
use backend\assets\AppAsset;
use yii\bootstrap\ActiveForm;
use yii\web\View;
$this->title = '找回密码页面';
AppAsset::register($this);
AppAsset::addCss($this,Yii::$app->request->baseUrl."/status/css/public.css");
$jsString= "$(function(){
    $('.seek_pass').click(function(){
        location.href = '/public/login';
    });
});";
$this->registerjs($jsString, View::POS_END);
?>
<?php $this->beginPage() ?>
<!doctype html>
<html lang="en">
<head>
    <?= Html::csrfMetaTags() ?>
    <meta charset="UTF-8">
    <title><?= $this->title;?></title>
    <?= $this->head();?>
</head>
<?php $this->beginBody() ?>
<body>
<div id="content">
    <div class="login_logo"><h1 style="padding-left: 70px; color: #FFE0B3">管理员-修改密码</h1></div>
    <div class="login">
        <?php $from = ActiveForm::begin([
            'id' => 'login-form',
            'options' => ['class' => null],
            'fieldConfig' => [
                'template' => '{input}{error}'
            ],
        ]); ?>
        <div class="b_body">
            <?php if(Yii::$app->session->hasFlash('info')){
                echo Yii::$app->session->getFlash('info');
            } ?>
            <?= $from->field($model, 'username')->hiddenInput();?>

            <?= $from->field($model, 'password', [ 'options' => ['class' => 'in_txt']])->passwordInput(['placeholder' => '新密码'])->label('新密码') ?>

            <?= $from->field($model, 'repass', [ 'options' => ['class' => 'in_txt']])->passwordInput(['placeholder' => '新密码'])->label('新密码') ?>

            <span class='seek_pass'><a href='javascript:;' class='seek_pass' style="padding: 10px;">返回登录</a></span>
            <div class="checker_txt">
                <div class="btn_txt">
                    <?= Html::submitButton('修改', ['class' => 'login_btn', 'name' => 'login-button'])?>
                </div>
            </div>
        </div>
        <?php ActiveForm::end(); ?>
        <div class="end">Cicimap @ by 2016</div>
    </div>
</div>
</body>
<?php $this->endBody() ?>
</html>
<?php $this->endPage() ?>